<?php
class Categorymanager_Model_Deletecategory implements Categorymanager_Model_Mainable{
    
    private $categorymanager_data_deletecategorysettings;
    
    private $action_handler;
    
    private $current_result;
    private $excepted_result = 1;
    
    public function __construct() {
        $this->categorymanager_data_deletecategorysettings = new Categorymanager_Data_Deletecategorysettings;
    }

    public function main(array $variables = null) {
        $this->current_result = $this->categorymanager_data_deletecategorysettings->main($variables);
        if($this->current_result == $this->excepted_result){
            header("Location: ".SITE_ROOT."zarzadzaj-kategoriami.html");
        }
        else {
            header("Location: ".SITE_ROOT."zarzadzaj-kategoriami.html");
        }
    }

}
